<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions">
    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <title>Login User</title>
    </h:head>
    <body>
        <f:view>
            <h:form>
                <h:selectOneMenu id="selectmenu" value="#{timeSetBean.selected}" >
                    <f:selectItems value="#{timeSetBean.listDateRelease}" var="item" itemLabel="#{item.dateRelease}" itemValue="#{item.dateRelease}"/>

                </h:selectOneMenu>
                <h:commandButton value="Submit" action="ShowHours">
                    <f:setPropertyActionListener value="#{}" target="#{timeSetBean.selectTime}"/>
                </h:commandButton>
                <h:dataTable value="#{timeSetBean.listDateRelease}" var="item">
                    <h:column>
                        <h:outputText value="#{item.dateRelease}">
                            <f:convertDateTime pattern="dd/MM/yyyy" />
                        </h:outputText>
                    </h:column>
                    <h:column>
                        <h:commandButton value="view"  action="ShowHours">

                            <f:setPropertyActionListener target="#{timeSetBean.selectTime}" value="#{item}"/>
                        </h:commandButton>
                    </h:column>

                </h:dataTable>


            </h:form>
        </f:view>
    </body>
</html>
